# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=nickle
pkgver=2.96
pkgrel=0
pkgdesc="Desk calculator language with C-like syntax"
url="https://nickle.org/"
arch="all"
license="MIT"
makedepends="readline-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://nickle.org/release/nickle-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4d06eb2e62a7c6c322ff9b406cfff2f2e68d0ff0eb3c84240aced618b89aa2a6be8822d7ae4169dc3e42c94527fb587a6c5fd9739bde03098de9f86b2bf11e3a  nickle-2.96.tar.gz
"
